package com.shanyi.sendmsg;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;

// 添加定时任务启动类注解
@EnableScheduling
@EnableDiscoveryClient
@SpringBootApplication
public class SendMsgApplication {

    public static void main(String[] args) {

        SpringApplicationBuilder builder = new SpringApplicationBuilder(SendMsgApplication.class);
        builder.headless(false).run(args);
        // SpringApplication.run(SendMsgApplication.class, args);
        
    }

}
